﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Data.ModelDatabase
{
    public class User
    {
        public User()
        {
            Basket = new List<Basket>();
        }

        [Key]
        public int Id { get; set; }
        public virtual string Username { get; set; }
        public virtual string Email { get; set; }
        public virtual string Password { get; set; }

        public virtual ICollection<Role> Roles { get; set; }
        public virtual ICollection<OrderEntry> LogEntry { get; set; }

        public virtual ICollection<Basket> Basket { get; set; }
    }
}
